package com.itheima.mydate;

import java.util.Date;

public class DateConclusion {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println("date"+date);

        Date date1 = new Date(1000L * 60 * 60);
        System.out.println("date1"+date1);

        long time = date.getTime();
        System.out.println("time"+time);
        long nowTime = System.currentTimeMillis();
        System.out.println("nowTime"+nowTime);

        date1.setTime(1000L * 60 * 60 * 2);
        System.out.println("date1"+date1);
    }
}
